//
//  UnlikeTask.m
//  ZooNgonDoiOS
//
//  Created by Anh Jun Linh Tinh on 7/5/12.
//  Copyright (c) 2012 Personal. All rights reserved.
//

#import "UnlikeTask.h"

@implementation UnlikeTask
-(id)initWithSpotId:(int)spotId{
    self = [super init];
    if(self){
        _spotId = spotId;
    }
    return self;
}

-(void)doExecute{
     NSString* strSpotId = [NSString stringWithFormat:@"%i", _spotId];
    NSDictionary *param = [NSDictionary dictionaryWithObject:strSpotId forKey:@"spot_id"];
    [[RKObjectManager sharedManager].client get:@"/spot/like" queryParameters:param delegate:self];
}

-(void)request:(RKRequest *)request didFailLoadWithError:(NSError *)error{
    
}

-(void)request:(RKRequest *)request didLoadResponse:(RKResponse *)response{
    
}
@end
